<?php

class Application_Form_Category extends Zend_Form {

        public function init() {
                /* Form Elements & Other Definitions Here ... */
                $this->addElement('text', 'name', array(
                            'label' => 'Category Name',
                           // 'name'=>'catName',
                            'required' => true,
                            'filters' => array('StringTrim'),
                            'validators' => array( 'Alnum')
                        )
                );
                $this->addElement('text', 'discription', array(
                            'label' => 'Category discription',
                            'required' => true,
                            'filters' => array('StringTrim'),
                            'validators' => array( 'Alnum')
                        )
                );
                $this->addElement('submit', 'submit', array(
                            'ignore'   => true,
                            'label'    => 'save',
                        )
                 );
                //$this->addElement('hash', 'csrf', array( 'ignore' => true));
        }

}

